credit: change default timeslice to 5ms
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 6 Mar 2014 11:19:39 +0000 (12:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Mar 2014 11:19:39 +0000 (12:19 +0100)
commit348dee3b8afb72cb4713d2e6600b4e86e0cc1723
treea8183340227f7eaf578834092233949e6688ea2e
parent891219a9d3958860b915021f622f7119b9b880d8
credit: change default timeslice to 5ms

The 30ms timeslice was chosen nearly a decade ago now, with cpu
"burning" workloads in mind.  In the mean time, processors have gotten
faster and VMEXITs have gotten faster.  A timeslice of 30ms has a
major cost when running latency-sensitive workloads like network or
audio streaming: getting caught behind just one or two other VMs can
introduce a processing delay of up to 60ms, and the "round-robin"
nature of the credit scheduler means this delay may be introduced
every time the VM yields for periods of time.

The XenServer performance team at Citrix have done extensive testing
with various timeslices, including 30ms, 10ms, 5ms, and 2ms.  None of
the workloads exhibited any performance degradation with a 5ms
timeslice.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/common/sched_credit.c